//
//  TopTableViewCell.m
//  iphone-graph
//
//  Created by yuzhuo on 2016/12/27.
//  Copyright © 2016年 yzapp. All rights reserved.
//

#import "TopTableViewCell.h"
#import "Constant.h"

@implementation TopTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self  = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if(self){
        self.accessoryType = UITableViewCellAccessoryNone;//
        [self initSubViews];
    }
    return self;
}


-(void) initSubViews
{
    self.backgroundColor = [UIColor whiteColor];
    self.pic = [[UIImageView alloc] initWithFrame:CGRectMake(15, 0, 150, 140)];
    [self.contentView addSubview:self.pic];
    
}


#pragma mark -SetData

-(void)setData:(UIImage*)data
{
    _data = data;
    self.pic.image = data;
}

@end
